package com.zhongyu.AreaJson.service;

import com.zhongyu.AreaJson.model.VArea;

import java.util.List;

/**
 * @Auther: zhongyu
 * @Date: 2018/8/24 16:05
 * @Description:
 */
public interface AreaService {

    /**
     * 根据区划编码获取区域Json数据
     * @param AreaCode
     * @return
     * @throws Exception
     */
    String getJsonByAreaCode(String AreaCode) throws Exception;
    
    /**
     * @author: zhongyu
     * @description:
     * @param: [id]
     * @return: com.zhongyu.AreaJson.model.VArea
     * @date: 2018/9/10 17:37
     */
    VArea getAreaById(String id);

    /**
     * @author: zhongyu
     * @description:
     * @param: [areaCode]
     * @return: com.zhongyu.AreaJson.model.VArea
     * @date: 2018/9/11 8:22
     */
    VArea getAreaByAreaCode(String areaCode);

    /**
     * @author: zhongyu
     * @description:
     * @param: [vArea]
     * @return: java.lang.Boolean
     * @date: 2018/9/11 8:30
     */
    Boolean updateAarea(VArea vArea);
}
